/*
 * Created on Mar 20, 2007
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package ro.qi.framework.sys.i18n.currencies.entities;

import ro.qi.framework.sys.entities.Entity;

/**
 * @author Vlad
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class Currency extends Entity {

	public Currency() {
		super();
	}

	public Currency(int id) {
		super();
		setId(id);
		select();
	}
	
	public Currency(String isoAlphanumericCode) {
		super();
		setIsoAlphanumericCode(isoAlphanumericCode);
		select();
	}

	public Currency(String isoAlphanumericCode, String isoNumericCode) {
		super();
//		System.out.println("Locale(int id)");
//		CallDetective cd = new CallDetective();
//		System.out.println("caller 0: " + cd.findCaller(0));
//		System.out.println("caller 1: " + cd.findCaller(1));
//		System.out.println("caller 2: " + cd.findCaller(2));
//		System.out.println("caller 3: " + cd.findCaller(3));
//		System.out.println("caller 4: " + cd.findCaller(4));
//		System.out.println("caller 5: " + cd.findCaller(5));
//		System.out.println("caller 6: " + cd.findCaller(6));
//		System.out.println("caller 7: " + cd.findCaller(7));
//		System.out.println("isoAlphanumericCode: " + isoAlphanumericCode);
		setIsoAlphanumericCode(isoAlphanumericCode);
		setIsoNumericCode(isoNumericCode);
		select();
	}

	public void setId(int value) {
		setValue("id", value);
	}

	public int getId() {
		return getIntValue("id");
	}

	public void setName(String value) {
		setValue("name", value);
	}

	public String getName() {
		return getStringValue("name");
	}

	public void setIsoAlphanumericCode(String value) {
		setValue("isoAlphanumericCode", value);
	}

	public String getIsoAlphanumericCode() {
		return getStringValue("isoAlphanumericCode");
	}

	public void setIsoNumericCode(String value) {
		setValue("isoNumericCode", value);
	}

	public String getIsoNumericCode() {
		return getStringValue("isoNumericCode");
	}

	public void setSymbol(String value) {
		setValue("symbol", value);
	}

	public String getSymbol() {
		return getStringValue("symbol");
	}

	public void setPrefix(String value) {
		setValue("prefix", value);
	}

	public String getPrefix() {
		return getStringValue("prefix");
	}

	public void setSufix(String value) {
		setValue("sufix", value);
	}

	public String getSufix() {
		return getStringValue("sufix");
	}

	public void setSubdivision(String value) {
		setValue("subdivision", value);
	}

	public String getSubdivision() {
		return getStringValue("subdivision");
	}

	public void setSubdivisionUnit(int value) {
		setValue("subdivisionUnit", value);
	}

	public int getSubdivisionUnit() {
		return getIntValue("subdivisionUnit");
	}

}
